package com.company.demo.adapter_ac_dc;

public class ChinaPowerAdapter implements TargetPower {
    AC220 ac220 = new AC220();

    @Override
    public boolean isSupport(AC ac) {
        return ac.getOutV() == ac220.getOutV();
    }

    @Override
    public int outputDC5V() {
        System.out.println("中国变压器220V");
        return ac220.getOutV() / 44;
    }
}
